package cn.edu.ctbu.websql.repository;

import cn.edu.ctbu.websql.domain.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface StudentRepository extends JpaRepository<Student,Integer> {
    List<Student> findAllByNoLike(String no);
    Page<Student> findAll(Pageable pageable);
    List<Student> findByNoAndPassword(String username,String password);
}